package com.fan.admin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author fan
 * @date 2021/2/3
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Admin implements Serializable {

	private static final long serialVersionUID = -4652457519220413663L;
	/**
	 * 自然主键
	 */
	private Integer id;

	/**
	 * 用户名
	 */
	private String name;
	/**
	 * 密码
	 */
	private String password;

	/**
	 * 权限标识
	 */
	private Integer role;

	@Override
	public String toString() {
		return "Admin{" +
				"id=" + id +
				", name='" + name + '\'' +
				", password='" + password + '\'' +
				", role=" + role +
				'}';
	}
}
